package com.jade.framework.base.security;

import java.io.Serializable;
import java.security.Principal;

/**
 * 对Principal的封装，主要应用一些对Principal的特殊处理，例如Spring MVC对于Principal参数的传递上。
 *
 * @author dwzhang
 * @version 1.0 13-9-8 下午5:43
 */
public class PrincipalCapsule implements Serializable
{
    private Principal principal;

    public PrincipalCapsule(Principal principal)
    {
        this.principal = principal;
    }

    public Principal getPrincipal()
    {
        return principal;
    }
}
